﻿<%@ Page Language="C#" MasterPageFile="~/Customer/MMcustomer.Master" AutoEventWireup="true"
    CodeBehind="CUserInfoModify.aspx.cs" Inherits="MobileManager.Customer.CUserInfoModify"
    Title="修改用户信息" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .tdInfo
        {
            text-align: left;
            height: 40px;
            font-size: 12px;
        }
    </style>

    <script type="text/javascript">
        function CheckPD() {
            var strPD2 = $("#<%=txtNewPassWord2.ClientID%>").val().Trim();
            var strPD1 = $("#<%=txtNewPassWord1.ClientID%>").val().Trim();
            if (strPD1 != "" && strPD2 != "") {
                if (strPD2 != strPD1) {
                    document.getElementById("spanMessage").innerHTML = "两次密码输入不一致！";
                    document.getElementById("<%=btnSubmit.ClientID%>").disabled = "disabled";
                }
                else {
                    document.getElementById("spanMessage").innerHTML = "";
                    document.getElementById("<%=btnSubmit.ClientID%>").disabled = "";
                }
            }
        }
        function CheckSave() {
            var strName = $("#<%=txtUserName.ClientID%>").val().Trim();
            if (strName == "") {
                document.getElementById("spanMessage").innerHTML = "姓名必须填写！";
                return false;
            }
            return true;
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">
    <div>
        <table>
            <tr>
                <td colspan="2" style="text-align: center;">
                    <span id="spanMessage" style="font-size: 12px; color: Red;"></span>
                </td>
            </tr>
            <tr>
                <td class="tdInfo">
                    用户名：
                </td>
                <td class="tdInfo">
                    <asp:Label ID="lbUserID" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="tdInfo">
                    新密码：
                </td>
                <td class="tdInfo" style="width: 250px;">
                    <asp:TextBox ID="txtNewPassWord1" runat="server" Width="200px" MaxLength="20" onblur="CheckPD()"
                        TextMode="Password" CssClass="txtBoxNormal"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tdInfo">
                    确认新密码：
                </td>
                <td class="tdInfo">
                    <asp:TextBox ID="txtNewPassWord2" runat="server" Width="200px" MaxLength="20" onblur="CheckPD()"
                        TextMode="Password" CssClass="txtBoxNormal"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tdInfo">
                    姓名：
                </td>
                <td class="tdInfo" style="width: 250px;">
                    <asp:TextBox ID="txtUserName" runat="server" Width="200px" CssClass="txtBoxNormal"
                        MaxLength="30"></asp:TextBox><span style="color: Red;">*</span>
                </td>
            </tr>
            <%--            <tr>
                <td class="tdInfo">
                    固定电话：
                </td>
                <td class="tdInfo" style="width: 250px;">
                    <asp:TextBox ID="txtTelephone" runat="server" Width="200px" CssClass="txtBoxNormal" MaxLength="30"></asp:TextBox>
                </td>
            </tr>--%>
            <tr>
                <td class="tdInfo">
                    手机：
                </td>
                <td class="tdInfo" style="width: 250px;">
                    <asp:TextBox ID="txtMobile" runat="server" Width="200px" CssClass="txtBoxNormal"
                        MaxLength="30"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tdInfo">
                    地址：
                </td>
                <td class="tdInfo" style="width: 250px;">
                    <asp:TextBox ID="txtAddress" runat="server" Width="200px" CssClass="txtBoxNormal"
                        MaxLength="50"></asp:TextBox>
                </td>
            </tr>
            <%--            <tr>
                <td class="tdInfo">
                    备注：
                </td>
                <td class="tdInfo" style="width: 250px;">
                    <asp:TextBox ID="txtRemark" runat="server" Width="200px" CssClass="txtBoxNormal" MaxLength="50"></asp:TextBox>
                </td>
            </tr>--%>
            <tr>
                <td style="text-align: center;" colspan="2">
                    <asp:Button ID="btnSubmit" runat="server" Text="提 交" CssClass="button_blue" OnClick="btnSubmit_Click"
                        OnClientClick="return CheckSave();" />
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
